package com.ruoyi.finance.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 分批计费(应收)对象 t_batch_billing
 * 
 * @author liuyu
 * @date 2024-10-30
 */
public class BatchBilling extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 关联应收账款表id */
    @Excel(name = "关联应收账款表id")
    private Long accountsReceivableId;

    /** 收款金额 */
    @Excel(name = "收款金额")
    private BigDecimal collectionAmount;

    /** 收款说明 */
    @Excel(name = "收款说明")
    private String collectioninstructions;

    /** 收款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @Excel(name = "收款时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
    private Date collectionTime;

    /** 交易单号 */
    @Excel(name = "交易单号")
    private String tradeNo;

    /** 附件 */
    @Excel(name = "附件")
    private String other;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setAccountsReceivableId(Long accountsReceivableId)
    {
        this.accountsReceivableId = accountsReceivableId;
    }

    public Long getAccountsReceivableId()
    {
        return accountsReceivableId;
    }
    public void setCollectionAmount(BigDecimal collectionAmount)
    {
        this.collectionAmount = collectionAmount;
    }

    public BigDecimal getCollectionAmount()
    {
        return collectionAmount;
    }
    public void setCollectioninstructions(String collectioninstructions)
    {
        this.collectioninstructions = collectioninstructions;
    }

    public String getCollectioninstructions()
    {
        return collectioninstructions;
    }
    public void setCollectionTime(Date collectionTime)
    {
        this.collectionTime = collectionTime;
    }

    public Date getCollectionTime()
    {
        return collectionTime;
    }
    public void setTradeNo(String tradeNo)
    {
        this.tradeNo = tradeNo;
    }

    public String getTradeNo()
    {
        return tradeNo;
    }
    public void setOther(String other)
    {
        this.other = other;
    }

    public String getOther()
    {
        return other;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("accountsReceivableId", getAccountsReceivableId())
                .append("collectionAmount", getCollectionAmount())
                .append("collectioninstructions", getCollectioninstructions())
                .append("collectionTime", getCollectionTime())
                .append("tradeNo", getTradeNo())
                .append("other", getOther())
                .toString();
    }
}